#!/bin/sh
./etcd --name k8s-master3 \
       --data-dir /data/etcd \
      --listen-peer-urls https://192.168.6.233:2380 \
      --listen-client-urls https://192.168.6.233:2379,http://127.0.0.1:2379 \
      --quota-backend-bytes 8000000000 \
      --initial-advertise-peer-urls https://192.168.6.233:2380 \
      --advertise-client-urls https://192.168.6.233:2379,http://127.0.0.1:2379 \
      --initial-cluster k8s-master1=https://192.168.6.231:2380,k8s-master2=https://192.168.6.232:2380,k8s-master3=https://192.168.6.233:2380 \
      --ca-file ./certs/ca.pem \
      --cert-file ./certs/etcd-peer.pem \
      --key-file ./certs/etcd-peer-key.pem \
      --client-cert-auth \
      --trusted-ca-file ./certs/ca.pem \
      --peer-ca-file ./certs/ca.pem \
      --peer-cert-file ./certs/etcd-peer.pem \
      --peer-key-file ./certs/etcd-peer-key.pem \
      --peer-client-cert-auth \
      --peer-trusted-ca-file ./certs/ca.pem \
      --log-output stdout